package com.ffcs.web.model.entity;
// default package

import java.sql.Timestamp;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_order")
public class Order implements java.io.Serializable {

	// Fields

	private Integer id;
	private String orderSn;
	private Integer studyId;
	private String counseName;
	private String counseTel;
	private Integer userId;
	private String counseType;
	private String payMenthod;
	private String serviceTime;
	private Double orderPrice;
	private Date bookTime;
	@Transient
	private String payTime;
	@Transient
	private String bookTimeStr;
	private String orderType;
	private String orderStatus;
	private String questionDesc;
	private Date dateAdd;
	private Date dateChange;
	private Short isSettlement;
	private String customerName;
	private Short sex;
	private String telephone;
	private Short age;
	private Short schoolAge;
	@Transient
	private String schoolAgeStr;
	private Short marriage;
	@Transient
	private String dateAddStr;
	private Date pingjiaTime;
	private String pingjia;
	private Short pingjiaxx;

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** minimal constructor */
	public Order(String counseTel, Integer userId, String counseType,
			String payMenthod, String serviceTime, Double orderPrice,
			Date bookTime, String orderType, String orderStatus,
			String questionDesc, Date dateAdd, Date dateChange) {
		this.counseTel = counseTel;
		this.userId = userId;
		this.counseType = counseType;
		this.payMenthod = payMenthod;
		this.serviceTime = serviceTime;
		this.orderPrice = orderPrice;
		this.bookTime = bookTime;
		this.orderType = orderType;
		this.orderStatus = orderStatus;
		this.questionDesc = questionDesc;
		this.dateAdd = dateAdd;
		this.dateChange = dateChange;
	}

	/** full constructor */
	public Order(String orderSn, Integer studyId, String counseName,
			String counseTel, Integer userId, String counseType,
			String payMenthod, String serviceTime, Double orderPrice,
			Date bookTime, String orderType, String orderStatus,
			String questionDesc, Date dateAdd, Date dateChange,
			Short isSettlement, String customerName, Short sex,
			String telephone, Short age, Short schoolAge, Short marriage) {
		this.orderSn = orderSn;
		this.studyId = studyId;
		this.counseName = counseName;
		this.counseTel = counseTel;
		this.userId = userId;
		this.counseType = counseType;
		this.payMenthod = payMenthod;
		this.serviceTime = serviceTime;
		this.orderPrice = orderPrice;
		this.bookTime = bookTime;
		this.orderType = orderType;
		this.orderStatus = orderStatus;
		this.questionDesc = questionDesc;
		this.dateAdd = dateAdd;
		this.dateChange = dateChange;
		this.isSettlement = isSettlement;
		this.customerName = customerName;
		this.sex = sex;
		this.telephone = telephone;
		this.age = age;
		this.schoolAge = schoolAge;
		this.marriage = marriage;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "orderSn")
	public String getOrderSn() {
		return this.orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	@Column(name = "studyId")
	public Integer getStudyId() {
		return this.studyId;
	}

	public void setStudyId(Integer studyId) {
		this.studyId = studyId;
	}

	@Column(name = "counseName", length = 100)
	public String getCounseName() {
		return this.counseName;
	}

	public void setCounseName(String counseName) {
		this.counseName = counseName;
	}

	@Column(name = "counseTel", nullable = false, length = 20)
	public String getCounseTel() {
		return this.counseTel;
	}

	public void setCounseTel(String counseTel) {
		this.counseTel = counseTel;
	}

	@Column(name = "userId", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "counseType", nullable = false, length = 10)
	public String getCounseType() {
		return this.counseType;
	}

	public void setCounseType(String counseType) {
		this.counseType = counseType;
	}

	@Column(name = "payMenthod", nullable = false, length = 30)
	public String getPayMenthod() {
		return this.payMenthod;
	}

	public void setPayMenthod(String payMenthod) {
		this.payMenthod = payMenthod;
	}

	@Column(name = "serviceTime", nullable = false, length = 10)
	public String getServiceTime() {
		return this.serviceTime;
	}

	public void setServiceTime(String serviceTime) {
		this.serviceTime = serviceTime;
	}

	@Column(name = "orderPrice", nullable = false, precision = 15, scale = 4)
	public Double getOrderPrice() {
		return this.orderPrice;
	}

	public void setOrderPrice(Double orderPrice) {
		this.orderPrice = orderPrice;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "bookTime", nullable = false, length = 19)
	public Date getBookTime() {
		return this.bookTime;
	}

	public void setBookTime(Date bookTime) {
		this.bookTime = bookTime;
	}

	@Column(name = "orderType", nullable = false, length = 10)
	public String getOrderType() {
		return this.orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	@Column(name = "orderStatus", nullable = false, length = 10)
	public String getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Column(name = "questionDesc", nullable = false, length = 1000)
	public String getQuestionDesc() {
		return this.questionDesc;
	}

	public void setQuestionDesc(String questionDesc) {
		this.questionDesc = questionDesc;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dateAdd", nullable = false, length = 19)
	public Date getDateAdd() {
		return this.dateAdd;
	}

	public void setDateAdd(Date dateAdd) {
		this.dateAdd = dateAdd;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dateChange", nullable = false, length = 19)
	public Date getDateChange() {
		return this.dateChange;
	}

	public void setDateChange(Date dateChange) {
		this.dateChange = dateChange;
	}

	@Column(name = "isSettlement")
	public Short getIsSettlement() {
		return this.isSettlement;
	}

	public void setIsSettlement(Short isSettlement) {
		this.isSettlement = isSettlement;
	}

	@Column(name = "customerName", length = 20)
	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	@Column(name = "sex")
	public Short getSex() {
		return this.sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	@Column(name = "telephone", length = 15)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "age")
	public Short getAge() {
		return this.age;
	}

	public void setAge(Short age) {
		this.age = age;
	}

	@Column(name = "schoolAge")
	public Short getSchoolAge() {
		return this.schoolAge;
	}

	public void setSchoolAge(Short schoolAge) {
		this.schoolAge = schoolAge;
	}

	@Column(name = "marriage")
	public Short getMarriage() {
		return this.marriage;
	}

	public void setMarriage(Short marriage) {
		this.marriage = marriage;
	}
	@Transient
	public String getDateAddStr() {
		return dateAddStr;
	}

	public void setDateAddStr(String dateAddStr) {
		this.dateAddStr = dateAddStr;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "pingjiaTime", length = 19)
	public Date getPingjiaTime() {
		return this.pingjiaTime;
	}

	public void setPingjiaTime(Date pingjiaTime) {
		this.pingjiaTime = pingjiaTime;
	}

	@Column(name = "pingjia", length = 1000)
	public String getPingjia() {
		return this.pingjia;
	}

	public void setPingjia(String pingjia) {
		this.pingjia = pingjia;
	}

	@Column(name = "pingjiaxx")
	public Short getPingjiaxx() {
		return this.pingjiaxx;
	}

	public void setPingjiaxx(Short pingjiaxx) {
		this.pingjiaxx = pingjiaxx;
	}

	@Transient
	public String getBookTimeStr() {
		return bookTimeStr;
	}

	public void setBookTimeStr(String bookTimeStr) {
		this.bookTimeStr = bookTimeStr;
	}

	@Transient
	public String getSchoolAgeStr() {
		return schoolAgeStr;
	}

	public void setSchoolAgeStr(String schoolAgeStr) {
		this.schoolAgeStr = schoolAgeStr;
	}

	@Transient
	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}
	

}